/*
package com.weijian.dal.es;


import cn.hutool.core.bean.BeanUtil;
import com.weijian.dal.entity.Article;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;
import java.util.Date;

*/
/**
 * 文章 ES 包装类，相比mysql实体类，多一个向量字段
 **//*

@Document(indexName = "post")
@Data
public class PostEsDTO implements Serializable {

    private static final String DATE_TIME_PATTERN = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'";

    */
/**
     * id
     *//*

    @Id
    private Long id;

    */
/**
     * 标题
     *//*

    @Field(type = FieldType.Text, analyzer = "ik_max_word", searchAnalyzer = "ik_smart")
    @Schema(description = "文章标题")
    private String title;

    */
/**
     * 父层级
     *//*

    @Field(type = FieldType.Keyword)
    @Schema(description = "父层级")
    private String parentTagNames;
    */
/**
     * 标签
     *//*

    @Field(type = FieldType.Keyword)
    @Schema(description = "标签")
    private String tagNames;
    */
/**
     * 维度标签
     *//*

    @Field(type = FieldType.Keyword)
    @Schema(description = "维度标签")
    private String dimensionTagNames;
    */
/**
     * 内容
     *//*

    @Field(type = FieldType.Text, analyzer = "ik_max_word", searchAnalyzer = "ik_smart")
    @Schema(description = "文章内容")
    private String content;

    */
/**
     * 创建用户
     *//*

    @Field(type = FieldType.Keyword)
    private String creator;

    */
/**
     * 更新用户
     *//*

    @Field(type = FieldType.Keyword)
    private String updater;

    */
/**
     * 创建时间
     *//*

    @Field(index = false, store = true, type = FieldType.Date, format = {}, pattern = DATE_TIME_PATTERN)
    private Date createTime;

    */
/**
     * 更新时间
     *//*

    @Field(index = false, store = true, type = FieldType.Date, format = {}, pattern = DATE_TIME_PATTERN)
    private Date updateTime;

    */
/**
     * 是否删除
     *//*

    private Boolean deleted;

    private static final long serialVersionUID = 1L;


    */
/**
     * 对象转包装类
     *
     * @param article
     * @return
     *//*

    public static PostEsDTO objToDto(Article article) {
        if (article == null) {
            return null;
        }
        return BeanUtil.copyProperties(article, PostEsDTO.class);
    }

    */
/**
     * 包装类转对象类
     *
     * @param postEsDTO
     * @return
     *//*

    public static Article dtoToObj(PostEsDTO postEsDTO) {
        if (postEsDTO == null) {
            return null;
        }
        return BeanUtil.copyProperties(postEsDTO, Article.class);
    }
}*/
